#pragma once
#include <vector>
#include "SDLText.h"

class TextField
{
public:
	TextField();
	TextField(SDLSprite* _bkg, bool _visible);
	TextField(int _posX, int _posY, int _frameX, int _frameY, int _width, int _height, std::string _fileName, SDLScene* _scene, bool _visible);
	~TextField();

	//Getters
	std::vector<SDLText*>& GetTexts() { return m_Texts; }

	bool IsVisible() const { return m_IsVisible; }
	void AddText(SDLText* const _text);
	void SetVisible(bool _visible);
	void SetBackground(SDLSprite* _bkg);

private:
	SDLSprite* m_Bkg;
	bool m_IsVisible;
	std::vector<SDLText*> m_Texts;
};

